﻿@model IEnumerable<CloudFranceTriple.Models.EventCategorySet>
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.EventIndexTitle;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@CloudFranceTriple.WebRole.Properties.Resources.EventIndexTitle</h1>
    <section>
        @if (User.IsInRole("RoleAdminEvent"))
        {
            <p>
                @Html.ActionLink(@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate, "Create", "Event", new { area = "Gaming" }, null)
            </p>
        }
        @foreach (var item in Model)
        {
            @Html.Action("ShowEvents", "Event", new { id = item.Id, area = "Gaming" })
        }
        <br />
    </section>
</div>
